package com.james.feign;

import com.james.feign.hystrix.UserServiceFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

/**
 * @ClassName: UserServiceFeign
 * @Author: JamesWang
 * @Date: 2021/4/22 22:40
 * @Description:
 * @Version:1.0
 */
@FeignClient(value = "user-service",fallback = UserServiceFeignHystrix.class)
public interface UserServiceFeign {

    @GetMapping("/user/getScore")
    Map<String,Object> getScore();
}
